package com.zaoke.web.utils;

import java.io.Serializable;

public class WebResponse<T extends Serializable> implements Serializable  {
	
	
	private static final long serialVersionUID = -8763681277876525970L;
	
	private int errorCode=0;
	private String errorDesc;
	private String complement;
	private T data;
	public int getErrorCode() {
		return errorCode;
	}
	public void setErrorCode(int errorCode) {
		this.errorCode = errorCode;
	}
	public String getErrorDesc() {
		return errorDesc;
	}
	public void setErrorDesc(String errorDesc) {
		this.errorDesc = errorDesc;
	}
	public String getComplement() {
		return complement;
	}
	public void setComplement(String complement) {
		this.complement = complement;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	@Override
	public String toString() {
		return "WebResponse [errorCode=" + errorCode + ", errorDesc="
				+ errorDesc + ", complement=" + complement + ", data=" + data
				+ "]";
	}
	
	

	
	
	
    
}
